package kuzmenkov.oip.controller.applet;

/**
 * Class stores data about a module parameter
 * @author Michael Kuzmenkov
 *
 */
public class Param {
	
	public static final String BOOLEAN_TYPE = "boolean";
	public static final String INTEGER_TYPE = "integer";
	public static final String FLOAT_TYPE = "float";
	public static final String STRING_TYPE = "string";
	public static final String IMAGE_TYPE = "image";
	/**
	 * There must be a selectable component before a component of this type
	 */
	public static final String SELECTION_TYPE = "selection";
	/**
	 * There must be a component that supports displaying of polygons  before 
	 * a component of this type
	 */
	public static final String POLYGONS_TYPE = "polygons";
	
	private String name;
	private boolean isResult;
	private String description;
	/**
	 * Type of parameter can be "string", "integer", "float", "image", "boolean", etc
	 */
	private String type;
	private String defaultValue;
	private int position;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isResult() {
		return isResult;
	}
	public void setResult(boolean isResult) {
		this.isResult = isResult;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	
	
	

}
